/**
 * 
 */
package com.device.grant.dao;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.device.grant.pojo.IDepartment;
import com.device.grant.utils.ColumnCompator;

/**
 * @author zhuxy
 * 
 * @version 1.0
 */
public interface DepartmentDao {

	List<IDepartment> getDepartMents(Integer page, Integer rows, Map<String, Object> params, List<String> blearParams,
			Map<String, ColumnCompator> compators, String orderBy);

	Integer getQueryCount(Map<String, Object> params, List<String> blearParams, Map<String, ColumnCompator> compators);

	boolean insertDepartment(IDepartment iDepartment);

	List<IDepartment> getDepartMentsIncludeParent(Set<Integer> ids);

	boolean updateDepartMentByBean(IDepartment department);

	IDepartment getTheDepartmentVo(Map<String, Object> conditions);
}
